﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="District.aspx.cs" Inherits="Interface.Houses.District" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
<asp:ScriptManager ID="scriptManager" runat="server" />
     <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    <asp:GridView ID="GridDistrict" runat="server"  
            AllowPaging="True" PageSize = "10" AllowSorting="True"
            AutoGenerateColumns="False" 
            AutoGenerateEditButton="true" CellPadding="4" DataKeyNames="ID" 
            ShowFooter="true" > 
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"/>

            <Columns>                                                             
              <asp:TemplateField HeaderText="STT">
              <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Eval("STT") %>' ></asp:Label>
                    </ItemTemplate>                                       
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Thành Phố">
                    <ItemTemplate>
                        <asp:Label ID="lblCity" runat="server" Text='<%# Eval("City") %>' ></asp:Label>
                    </ItemTemplate> 
                                      
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Quận">
                    <ItemTemplate>
                        <asp:Label ID="lblDis" runat="server" Text='<%# Eval("District") %>' ></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditDisName" runat="server"></asp:TextBox>
                    </EditItemTemplate>  
                                      
              </asp:TemplateField>
              
     
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />


    </asp:GridView>

   
    <br />
    <asp:Label ID="Label1" runat="server" Text="Thành Phố"></asp:Label>
    <asp:DropDownList ID="dlCity" runat="server" style="margin-top: 0px" 
        Width="143px">
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="Label2" runat="server" Text="Quận"></asp:Label>
    <asp:TextBox ID="txtDistrict" runat="server" Width="179px"></asp:TextBox>
    <asp:Label ID="lbError" runat="server"></asp:Label>
    <br />
    <br />
    <asp:Button ID="btAddDis" runat="server" onclick="btAddDis_Click" Text="Add" 
        Width="75px" />
    <br />
    </ContentTemplate>
    </asp:UpdatePanel>
   
    </div>
</asp:Content>
